// 仓库数据 Number类型存储
const store = {
    state: {
        num: 5,
    },

    actions: {//同步方法
        change1(newState: { num: number }, action: { type: string, value: number }) {
            newState.num = newState.num * 2
        },

    },
    //名字统一管理
    actionsNums: {},
}

let actionsNums = {}
for (let key in store.actions) {
    actionsNums[key] = key
}
store.actionsNums = actionsNums
export default store